import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Fijo here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Fijo extends Obstaculo
{
    /**
     * Act - do whatever the Fijo wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
       // checaJugador();
    } 
    
    
    
    /**
     * An example of a method - replace this comment with your own
     *
     * @param  y   a sample parameter for a method
     * @return     the sum of x and y
     */
    public void desliza(Jugador j)
    {
        int g;
            g=this.getRotation();
            if(g==135)
            {
                j.cambiaX(-1);
                j.cambiaDireccion(-1);
            }
            if(g==45)
            {
             j.cambiaX(1);
              j.cambiaDireccion(1);
            }
        
        
    }

}
